package dm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping
public class LoginController {
	@RequestMapping("/login")
	public String login(String userName, String passWord) {
		if (userName.equals("admin") && passWord.equals("20202020")) {
			return "data-selection";
		}
		return "404";
	}

	@RequestMapping("/index")
	public String index() {

		return "index";
	}
}
